.tc{
    text-align: center;
}
.hide{
    display: none;
}
.demo {
    /* for IE10+ touch devices */
    touch-action:none;
}

.item{
    padding: 10px;
    /* position: relative; */
    z-index: 4;
    border: 1px solid #2e6f9a;
    box-shadow: 2px 2px 19px #e0e0e0;
    -o-box-shadow: 2px 2px 19px #e0e0e0;
    -webkit-box-shadow: 2px 2px 19px #e0e0e0;
    -moz-box-shadow: 2px 2px 19px #e0e0e0;
    -moz-border-radius: 8px;
    border-radius: 8px;
    opacity: 0.8;
    cursor: move;
    background-color: white;
    font-size: 11px;
    -webkit-transition: background-color 0.25s ease-in;
    -moz-transition: background-color 0.25s ease-in;
    transition: background-color 0.25s ease-in;
    /* margin: 10px auto; */
    width: 156px;
    z-index: 9;
    margin: 10px;
}

.item:hover {
    background-color: #5c96bc;
    color: white;
}

.aLabel {
    -webkit-transition: background-color 0.25s ease-in;
    -moz-transition: background-color 0.25s ease-in;
    transition: background-color 0.25s ease-in;
}

.aLabel.jtk-hover, .jtk-source-hover, .jtk-target-hover {
    background-color: #1e8151;
    color: white;
}

.aLabel {
    background-color: white;
    opacity: 0.8;
    padding: 0.3em;
    border-radius: 0.5em;
    border: 1px solid #346789;
    /* box-shadow: 1px 1px 12px #dbd2d2; */
    cursor: pointer;
}

.ep {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: #fffbe9;
    cursor: pointer;
    box-shadow: 0 0 2px black;
    -webkit-transition: -webkit-box-shadow 0.25s ease-in;
    -moz-transition: -moz-box-shadow 0.25s ease-in;
    transition: box-shadow 0.25s ease-in;
}
.ep:hover {
    box-shadow: 0 0 6px black;
}
.ep1{
    bottom: 37%;
    right: -5px;
}
.ep3{
    bottom: 37%;
    left:-5px;
}
.ep2{
    bottom: -5px;
    right: 50%;
}
.ep4{
    top: -5px;
    right: 50%;
}
.statemachine-demo .jtk-endpoint {
    z-index: 3;
}
.dragHover {
    border: 2px solid orange;
}

path, .jtk-endpoint { cursor:pointer; }
/*css*/
body,html{
    height: 100%;
    /* overflow: hidden; */
}
.jtk-demo-main{
    margin-top:0;
    height: 100%;
}
.canvas {
    height: 97%;
    overflow: hidden;
    padding: 10px;
    margin:0 auto;
    position: relative;
}
.itemLeft,.itemRight{
    float: left;
   border: 1px solid #ddd;
}
.itemLeft{
    width: 200px;
    position: relative;
    height: 100%;
}
.itemRight{
    float: right;
    width: 86%;
    min-height: 282px;
    height: 100%;
    position: relative;
    border: 1px solid #fff;
}
.itemRight .item{
    text-align: center;
}
.topDiv{
    height: 560px;
    border: 1px solid #ddd;
}
.btnDiv{
    height: 40px;
    text-align: right;
}
.btn{
    padding: 5px 15px;
    color: #606266;
    cursor: pointer;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 2px;
    margin-top: 5px;
    margin-right: 5px;
    outline: none;
}
.btn:hover{
    background: #fff;
    border-color: #409eff;
    color: #409eff;
}
.downDiv{
    margin-top: 10px;
    border: 1px solid #ddd;
}
/* 线 */
.iconDiv{
    width:54px;
    height: 35px;
    overflow: hidden; 
    text-align: center;
    /* border: 1px solid #346789; */
}
.iconDiv p{
    overflow: hidden;
    /* position: absolute;  */
    width: 100%;
    height: 100%;
    line-height: 1.3;
}
.iconDiv span{
    width: 16px;
    height: 16px;
    display: block;
    float: left;
    background: url(../images/demoIcon.png) no-repeat 1px 0;
    margin: 0 5px;
    position: relative;
    top: 0px;
}
span.deleteIcon{
    background-position: right 0;
}
p.lineName{
    text-align: center;
}
.aLabel.jtk-hover .editIcon{
    background-position: 0 -18px;
}
.aLabel.jtk-hover .deleteIcon{
    background-position: right -18px;
}
/* .aLabel.jtk-hover .lineName{
    opacity: 0;
 }
 .aLabel.jtk-hover .iconsDiv{
    opacity: 1;
}  */
.dragArrow{
    width: 15px;
    height: 15px;
    display: inline-block;
    background: url(../images/arrowIcon.png) no-repeat -13px 5px;
    background-size: 30px auto;
}
.dragArrow.on{
    background-position: 6px 5px
}
/* 右侧div */
.rightDiv{
    width: 300px;
    height: 100%;
    position: absolute;
    right: -312px;
    top: 0;
    z-index: 9;
    border: 1px solid #ddd;
    background: #fff;
}
/* rightDiv */
.rightDiv form{
    text-align: center;
}
.rightDiv form p{
    line-height: 50px;
}
.rightDiv form input{
    cursor: auto;
}
.rightDiv form label{
    width: 40px;
    text-align: right;
    margin-right: 10px;
    display: inline-block;
}
.rightDiv form input{
    outline: none;
    border: 1px solid #6199be;
    border-radius: 2px;
    text-indent: 5px;
    line-height: 26px;
}
.rightDiv .conts > div{
    display: none;
    height: 100%;
}
.rightDiv h4{
    height: 30px;
    background: #faf9f9;
}
.arrowBtn{
    display: block;
    width: 19px;
    height: 21px;
    background: url(../images/arrow.png) no-repeat center center;
    background-size: 65% auto;
    cursor: pointer;
    position: relative;
    top: 4px;
    left: 4px;
}
/* .arrowBtn.back{
    background-position: 3px -20px;
} */